package com.zmj.common.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zhangmj
 * @date 2019/4/3 12:59
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class User implements Serializable {

    public User(String name, Integer code, String address, Integer age, String sex) {
        this.name = name;
        this.code = code;
        this.address = address;
        this.age = age;
        this.sex = sex;
    }

    /**
     * 姓名
     */
    private String name;

    /**
     * 人员编号
     */
    private Integer code;

    /**
     * 地址
     */
    private String address;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 性别
     */
    private String sex;

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", code=" + code +
                ", address='" + address + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }
}
